package com.thti.mecool.client.adapter;

import android.app.Activity;
import android.content.Context;
import android.view.View;
import android.view.ViewGroup;
import android.widget.BaseAdapter;
import android.widget.TextView;

import com.thti.mecool.client.activity.R;

public class MakePlanSetAdapter extends BaseAdapter {
	Context mContext;
	String[] titles={"选择项目","选择任务","选择终端"};
	String[] contents;
	
	public MakePlanSetAdapter(Context mContext, String[] contents) {
		super();
		this.mContext = mContext;
		this.contents = contents;
	}

	public MakePlanSetAdapter(Context mContext) {
		super();
		this.mContext = mContext;
	}

	@Override
	public int getCount() {
		// TODO Auto-generated method stub
		return titles.length;
	}

	@Override
	public Object getItem(int position) {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public long getItemId(int position) {
		// TODO Auto-generated method stub
		return position;
	}

	@Override
	public View getView(int position, View convertView, ViewGroup parent) {
		// TODO Auto-generated method stub
		View view =((Activity) mContext).getLayoutInflater().inflate(R.layout.mecool_make_plan_set,null);
		TextView title,content;
		title=(TextView)view.findViewById(R.id.mecool_make_plan_set_title);
		content=(TextView)view.findViewById(R.id.mecool_make_plan_set_content);
		view.setTag(position);
		title.setText(titles[position]);
		content.setHint(contents[position]);
		return view;
	}

}
